{extend name="layout/layout"}
{block name="content"}
<main class="user_page active ufm_page">
    <section class="">
       <div class="layui-main">
          <div class="user_con">
             <div class="user_headpage" data-load="user_files_header">
                {include file="user_activity/page_user" menu='dev' /}
             </div>
             <div class="right_main block1">
                <p class="t18 mb50">職涯發展</p>
                <from class="layui-form">
                   <div class="layui-form-item">
                      <div class="label must">你的身份</div>
                      <div class="">
                         <!-- <select name="interest" lay-filter="aihao">
                            <option value=""></option>
                         </select> -->
                         <input type="text" name="identity" value="{$user.identity|default=''}"  lay-verify="required|aihao" placeholder="身份"
                            autocomplete="off" class="layui-input">
                      </div>
                   </div>
                   <div class="layui-form-item">
                      <div class="label">職業</div>
                      <div class="mb20">
                         <select name="profession" lay-filter="aihao">
                            <option value="">请选择职业类别</option>
                            <option {$user.profession == '学生' ? 'selected' : ''} value="学生">学生</option>
                            <option {$user.profession == '教师/老师' ? 'selected' : ''} value="教师/老师">教师/老师</option>
                            <option {$user.profession == '家长/监护人' ? 'selected' : ''} value="家长/监护人">家长/监护人</option>
                            <option {$user.profession == '员工' ? 'selected' : ''} value="员工">员工</option>
                            <option {$user.profession == '自由职业者' ? 'selected' : ''} value="自由职业者">自由职业者</option>
                            <option {$user.profession == '企业主' ? 'selected' : ''} value="企业主">企业主</option>
                            <option {$user.profession == '政府官员' ? 'selected' : ''} value="政府官员">政府官员</option>
                            <option {$user.profession == '研究人员' ? 'selected' : ''} value="研究人员">研究人员</option>
                            <option {$user.profession == '医生/医疗从业者' ? 'selected' : ''} value="医生/医疗从业者">医生/医疗从业者</option>
                            <option {$user.profession == '其他' ? 'selected' : ''} value="其他">其他</option>
                         </select>
                      </div>
                      <div class="mb20">
                         <input type="text" name="company" value="{$user.company | default = ''}"  placeholder="公司名称"
                            autocomplete="off" class="layui-input">
                      </div>
                      <div>
                         <input type="text" name="job_title" value="{$user.job_title | default = ''}"  placeholder="职称" autocomplete="off"
                            class="layui-input">
                      </div>
                   </div>
                   <div class="layui-form-item">
                      <div class="label ">最高學歷</div>
                      <div class="mb20">
                         <input type="text" name="educational"  value="{$user.educational | default = ''}"  placeholder="學歷名称"
                            autocomplete="off" class="layui-input">
                      </div>
                      <div>
                         <input type="text" name="subject" value="{$user.subject | default = ''}"  lay-verify="required" placeholder="科系" autocomplete="off"
                            class="layui-input">
                      </div>
                   </div>
                   <div class="d-flex jc-fe layui-form-item">
                      <button class="layui-btn layui-btn-lg layui-btn-primary layui-border">放弃更改</button>
                      <button class="layui-btn layui-btn-lg layui-bg-orange" lay-submit lay-filter="formDemo">保存</button>
                   </div>
                </from>
             </div>
          </div>
       </div>
    </section>
 </main>
 <script>

layui.use('form', function(){
  var form = layui.form;
  
  //提交
  form.on('submit(formDemo)', function(data){
 
    $.quickPost('/activity/user/user_files_dev', data.field).done(function(){

      })
      return false;
  });
});
 
 </script>
{/block}